import axios from 'axios';
let base = '/magic/';
export const axiosPost = (url,params) => {return axios.post(base + url,params,{
          headers: { 'Content-Type': 'application/json' }
        }).then(res => {return res.data;})};

export const axiosGet = (url,params) => {
    debugger;
    return axios.get(base + url,{params}).then(res =>  {return res.data;})
};
export const axiosAll = axios.all;